<template>
  <div class="Home">
    <h1>Home</h1>
    <ul>
      <li
        v-for="item of 10"
        :key="item"
      >
<!--        <router-link :to="`/user/${item}`">to User {{ item }}</router-link>-->
        <router-link
          :to="{ name: 'User', params: { id: item } }">
          to User, {{ item }}
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Home",
  created() {
    // console.log(this)
  }
}
</script>
